import OneWayVideo from '../../../components/UnidirectionalVideo'
import { connect } from 'dva'

const UnidirectionalVideo = ({dispatch}) => {
  const loadData = {
    content: '大头照上传中...',
    imgClass: 'headPhoto'
  }
  const buttonData = {
    content: '拍一张',
    act: () => {
      dispatch({
        type: 'modules/getModules',
        payload: {
          title: '重置交易密码',
          process: 'resetPassword',
          pathname: '',
          tokenId: 'test',
          businessId: '1231241205-1-1',
        }
      })
    }
  }
  const OneWayVideoData = {
    sex: 'male',
    loadData,
    buttonData
  }
  return (
    <OneWayVideo {...OneWayVideoData}></OneWayVideo>
  )
}

export default connect(state => state.modifyPhone)(UnidirectionalVideo)